/* uart/uart.h
 *
 * UART Interface Driver
 *
 * Copyright (c) 2011 by BKIT4U <www.bkit4u.com>
 * Author: BS135 <thanhhai135@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General  Public  License
 * as published by the Free Software Foundation;version 2 or 2.1
 * of the License. This license can be found at
 *                           http://www.gnu.org/licenses/gpl.txt
 *
 * Target MCU	: Atmel AVR series
 * Editor Tabs	: 4
 */


#ifndef __UART_H__
#define __UART_H__

#define UART_BAUD_RATE		57600
#ifndef F_CPU
	# warning "F_CPU not defined for UART"
	# define F_CPU 1000000UL
#endif

//! Initialization UART operation mode
void uart_init();
//! Transmit a byte through UART bus
void uart_transmit_byte(char c);
//! Receive a byte from UART bus
int  uart_receive_byte();

#endif
